package online.misscl.lsy.controller.front;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import online.misscl.lsy.entity.dto.GetVaccineInfoDTO;
import online.misscl.lsy.entity.dto.vo.VaccineInformationVo;
import online.misscl.lsy.service.VaccineInformationService;
import online.misscl.lsy.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 疫苗信息表 前端控制器
 * </p>
 *
 * @author misscl
 * @since 2023/03/11 11:14
 */
@RestController
@RequestMapping("/front/vaccineInformation")
@Api(tags = "医院模块")
public class VaccineInformationController {

    @Autowired
    private VaccineInformationService vaccineInformationService;

    @ApiOperation(value = "查看医院某疫苗详情",notes = "根据分类和医院查看疫苗")
    @GetMapping("/getVaccineInfo")
    public AjaxResult<List<VaccineInformationVo>> getVaccineInfo(GetVaccineInfoDTO dto) {
        return AjaxResult.success(vaccineInformationService.getVaccineInfo(dto));
    }
}
